package createType.AbstractFactory.example.maze;

import java.util.HashMap;
import java.util.Map;

public class Room implements MapSite {
	
	public int RoomNo;
	public Map<Direction,MapSite> mapSites = new HashMap<Direction, MapSite>();
	
	public Room(int no){
		this.RoomNo = no;
	}
	
	public MapSite getSide(Direction dir){
		return mapSites.get(dir);
		
	}
	
	public Map<Direction,MapSite> getSides(){
		return mapSites;
	}
	
	public void setSizes(Direction cdir,MapSite mapSite){
		mapSites.put(cdir,mapSite);
	}
	public void setDirection(MapSite[] cmapSites){
		for(int i =0;i<4;i++){
			mapSites.put(Direction.values()[i],cmapSites[i]);
		}
	}

	@Override
	public void enter() {
		// TODO Auto-generated method stub

	}

}
